package com.atguigu.yygh.hosp.respository;

import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author luoyin
 * @Date 21:30 2022/9/26
 **/

public interface HospitalRepository extends MongoRepository<Hospital,String> {
    Hospital getByHoscode(String hoscode);
    List<Hospital> getByHosnameLike(String hosname);
}
